package Denglu;
public class Yanzheng {
	private String name;
	private String password;
	public Yanzheng(String name,String password){
		this.name=name;
		this.password=password;
	}
	public boolean validate(){
		if("wangyu".equals(name)&&"yu123".equals(password)){
			return true;
		}else{
			return false;
		}
	}
}
